<template>
  <div id="nav">
    <router-link to="/">登录</router-link> |
    <router-link to="/reg">注册</router-link>
    <div>{{ msg }}</div>
  </div>
</template>

<script>
export default {
  name: "navstxt",
  props: {
    msg: String
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
#nav{
  text-align: center;
  font-size: .3rem;
  margin: .5rem;
  a{margin: 0 .2rem;}
}
</style>
